home *** CD-ROM | disk | FTP | other *** search
- Path: mda014.cc.monash.edu.au!not-for-mail
- From: sjlam1@mda014.cc.monash.edu.au (Mr Stuart Lamble)
- Newsgroups: comp.lang.c
- Subject: Re: How do the functions in <time.h> work?
- Date: 19 Apr 1996 04:09:31 GMT
- Organization: Monash University
- Message-ID: <4l73lr$7ss@harbinger.cc.monash.edu.au>
- References: <317653DA.5066@ix.netcom.com>
- NNTP-Posting-Host: mda014.cc.monash.edu.au
- X-NNTP-Posting-User: sjlam1
- X-Newsreader: TIN [UNIX 1.3 950823BETA PL0]
-
- Jane Harper (jharper@ix.netcom.com) wrote:
- : This is sort of a homework question, so flame away if you must ...
- :
- : ...but I'm attempting to write a bit of code to access the system time
- : and when I call ctime() it returns January, 2014 (!!!!) How does ctime
- : work (or any of the fx in <time.h> for that matter, since they're all
- : connected)? What are some possible reasons for this bogus return?
-
- *sigh* RTFMP (Read The Flipping Man Page): it says that ctime expects
- a single parameter:
-
- char *ctime(const time_t *timer);
-
- Helpful hint: look at the parameters and return values of the time()
- function.
-
- --
- I now have a .sig of my vewwy own. I shall hug him, and love him,
- and call him George.
-